package com.xhh.nphm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhh.nphm.system.domain.TelGetDealTemp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface TelGetDealTempDao extends BaseMapper<TelGetDealTemp> {
    /**
     * 释放获取件  单个释放和 多选释放
     * @param ids
     * @return
     */
    @Delete("<script>" +
            "delete tm_tTelGetDeal_temp WHERE telId IN " +
            "<foreach collection='array' item='telId' open='(' separator=',' close=')'>#{telId}</foreach>"
            + "</script>")
    int deleteByIds(String[] ids);
}
